#include "time.h"
#include <iostream>

Time::Time(int h,int m,int s){
	setH(h);
	setM(m);
	setS(s);
}
Time& Time::setH(int x){
	(*this).h=x;
	return *this;
}
Time& Time::setM(int x){
	(*this).m=x;
	return *this;
}
Time& Time::setS(int x){
	(*this).s=x;
	return *this;
}
inline int Time::getH()const{
return (*this).h;
}
inline int Time::getM()const{
return (*this).m;
}
inline int Time::getS()const{
return (*this).s;
}
void Time::print()const{
std::cout<<"The time is= "<<(*this).h<<":"<<(*this).m<<":"<<(*this).s<<"\n";
}

